package com.bs.service.impl;

import java.util.List;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.bs.bean.Person;
import com.bs.dao.PersonDAO;
import com.bs.service.PersonService;

public class PersonServiceImpl extends SqlMapClientDaoSupport implements PersonService {

private PersonDAO personDao;
	
	
	
	public PersonDAO getPersonDao() {
		return personDao;
	}

	public void setPersonDao(PersonDAO personDao) {
		this.personDao = personDao;
	}

	@Override
	public void save(Person person) {
		this.personDao.save(person);
	}

	@Override
	public List<Person> findForPaging(int start,int limit) {
		return this.personDao.findForPaging(start,limit);
	}
	
	@Override
	public int batchDelete(String ids){
		return this.personDao.batchDelete(ids);
	}

	@Override
	public int getMaxId() {
		return this.personDao.getMaxId();
	}

	@Override
	public int totalCount() {
		return this.personDao.totalCount();
	}

	@Override
	public List<Person> query(Person person) {
		return this.personDao.query(person);
	}

	@Override
	public int update(Person person) {
		return this.personDao.update(person);
	}
	
	
}

